<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base/base::head('文件管理',~{::link},~{::script},~{::style})">
    <meta charset="UTF-8">

    <!--引入webuploader文件上传样式与js-->
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/webuploader/css/webuploader.css'"/>
    <link rel="stylesheet" th:href="${session.basePath}+'/resource/plugins/webuploader/css/style.css'"/>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/webuploader/js/webuploader.min.js'"></script>

    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/wdfjslib/page.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/imp/system/js/filesMgr.js'" charset="utf-8"></script>

    <title>文件管理</title>
</head>

<body class="page">

<!-- 查询面板 -->
<form id='searchForm'>
    <div class="searchBar">
        <div class='searchInput' id='searchPanel'>

            <div class='block'>
                <div class='label'>
                    文件名称：
                </div>
                <div class='input1 input'>
                    <input type='text' name='name' placeholder="文件名称" maxlength="30"/>
                </div>
            </div>

            <div class='block'>
                <div class='label'>
                    文件类型：
                </div>
                <div class='input1 input'>
                    <input type='text' name='type' placeholder="文件类型" maxlength="30"/>
                </div>
            </div>

            <div class="optBtnsBar">
                <input type='button' class="optBtn searchBtn" onclick='search();' value='查询' />
                <input type='button' class="optBtn restBtn" onclick="resetSearch();" value="重置"/>

                <input type='button' class="optBtn searchBtn" onclick='uploadFiles();' value='上传文件' />
            </div>
            <div style="clear:both"></div>

        </div>
    </div>
</form>

<div class="split"></div>

<div class="content">

    <div id="filesGrid"></div>

</div>

<!-- 附件上传 -->
<div class="pannel_bg" >
    <div class='panel' id="uploadDocsPanel">
        <form id="uploadDocsPanelForm" accept-charset="UTF-8" enctype="multipart/form-data;charset=UTF-8">
            <div class='titleBar'>
                <div class="title"></div>
                <div class="closeBtn">返回</div>
            </div>
            <div class='split'></div>
            <div class='content'>
                <div id="queue" style="margin-top:20px"></div>
                <input type='hidden' id='filePaths_UploadDocsPanel' name='filePaths'/>
                <input type="hidden" name="typeCode" value="" id="typeCode"/>
            </div>
            <div class='split'></div>
        </form>
    </div>
</div>

</body>
</html>